package com.yd.location.module.cms.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yd.location.common.spring.mpbase.IdEntity;
import com.yd.location.common.validation.annotation.NotBlank;
import com.yd.location.module.common.UserEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author Created by zk on 2020-07-14 20:28
 * @description 标识用户是否已读系统消息
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("cms_user_system_notice")
@Table(name = "cms_user_system_notice", indexes = {@Index(name = "idx_user", columnList = "userId"),
        @Index(name = "idx_user", columnList = "systemNoticeId")})
public class UserSystemNotice extends UserEntity {
    private String systemNoticeId;
    private Integer readFlag = 0;//是否已读标志 0-未读 1-已读
    private String name;//标题
    private transient String content;//内容
}
